package entity;

import java.sql.Timestamp;   // 数据库 datetime
import java.util.List;

// 查询学生顺便把他的信息一起查询出来
public class Stu {
	private int stuId;
	private String stuName;
	private String stuClass;
	private Timestamp createTime;
	private Timestamp modifyTime;
	private boolean isDelete;
	// 一对一，通过Stu查询StuInfo
	private StuInfo info;
	// 一对多
	private List<Score> scores;
	
	public List<Score> getScores() {
		return scores;
	}
	public void setScores(List<Score> scores) {
		this.scores = scores;
	}
	public StuInfo getInfo() {
		return info;
	}
	public void setInfo(StuInfo info) {
		this.info = info;
	}
	public int getStuId() {
		return stuId;
	}
	public void setStuId(int stuId) {
		this.stuId = stuId;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public String getStuClass() {
		return stuClass;
	}
	public void setStuClass(String stuClass) {
		this.stuClass = stuClass;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}
	public boolean isDelete() {
		return isDelete;
	}
	public void setDelete(boolean isDelete) {
		this.isDelete = isDelete;
	}
	@Override
	public String toString() {
		return "Stu [stuId=" + stuId + ", stuName=" + stuName + ", stuClass=" + stuClass + ", createTime=" + createTime
				+ ", modifyTime=" + modifyTime + ", isDelete=" + isDelete + ", info=" + info + ", scores=" + scores
				+ "]";
	}
}
